@red: #e93030;
@green: #009900;
@blue: #4295f2;
@orange: #ff801a;
@border: #eee;
@gray: #999;
@tabGray: #666;
@bg: #f5f5f5;

@font-face {
  font-family: "DIN";
  src: url("//s.thsi.cn/css/m/fonts/dinstock.ttf");
}

.red {
  color: @red;
}

.green {
  color: @green;
}

.set_px(@css_name, @px_num, @dpr: 4) when (@dpr > 0) {
  .set_px(@css_name, @px_num, (@dpr - 1));

  [data-dpr="@{dpr}"] & {
    @{css_name}: unit(@dpr* @px_num, px);
  }
}

//上三角形
.triangleUp(@w: 4.5, @color: #ccc) {
  display: inline-block;
  width: 0;
  height: 0;
  border-top-width: 0;
  .set_px(border-left-width, @w);
  .set_px(border-right-width, @w);
  .set_px(border-bottom-width, @w);
  border-style: solid;
  border-color: transparent transparent @color;
}

//旋转
.rotate(@angle) {
  transform: rotate(@angle);
  -webkit-transform: rotate(@angle);
}

//下三角形
.triangleDown(@w: 4.5, @color: #ccc) {
  .triangleUp(@w, @color: #ccc);
  .rotate(180deg);
}

.bold {
  font-weight: 700;
}

.border(@color: @border) {
  border-bottom: solid 1px @color;
}

// 设置图片背景
.bgimg(@url) {
  background: url(@url) no-repeat;
  background-size: 100% 100%;
}

// 根据位置设置图片背景
.bgimgpos(@url, @left, @top, @w, @h) {
  background: url(@url);
  background: url(@url);
  background-size: @w @h;
  background-position: @left @top;
}

/* 父元素-flex容器 */
.flex {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
}

/* 父元素-纵向排列（主轴） */
.flex-v {
  -webkit-box-orient: vertical;
  -webkit-flex-direction: column;
  flex-direction: column;
}

/* 父元素-竖直居中（主轴是横向才生效） */
.flex-vc {
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
}

/* 父元素-水平居中（主轴是横向才生效） */
.flex-hc {
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
}

/* 子元素-平均分栏 */
.flex1 {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
}

/* 子元素-两边靠 */
.flex-sb {
  -webkit-box-pack: justify;
  justify-content: space-between;
  -webkit-justify-content: space-between;
}

#vuewrap {
  position: relative;
  background: #fff;

  .dot3 {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }

  .limitUp {
    padding: 0 0.3rem;

    .rise,
    .data {
      .flex;
      .flex-sb;
      .flex-vc;
    }

    .rise {
      .border;
      text-align: center;
      padding: 0.45rem 0;

      .item {
        width: 50%;

        p:nth-of-type(1) {
          color: @tabGray;
          font-size: 0.26rem;
        }

        p:nth-of-type(2) {
          padding-top: 0.08rem;
          font-size: 0.36rem;
          font-family: "DIN";
        }
      }
    }

    .data {
      height: 0.72rem;
      line-height: 0.72rem;

      li {
        span {
          display: inline-block;
          vertical-align: middle;
        }

        span:nth-of-type(1) {
          color: @tabGray;
          font-size: 0.24rem;
        }

        span:nth-of-type(2) {
          font-size: 0.3rem;
          font-family: "DIN";
        }
      }
    }

    .height62 {
      height: 0.62rem;
      width: 1px;
      background: #eee;
      position: absolute;
      left: 50%;
      top: 0.5rem;
      -webkit-transform: translate(-50%);
      transform: translate(-50%);
    }
  }

  .height20 {
    height: 0.2rem;
    width: 100%;
    background: @bg;
  }

  .refreshbtn {
    width: 0.94rem;
    height: 0.94rem;
    position: fixed;
    z-index: 300;
    right: 0.32rem;
    bottom: 1.62rem;
    .bgimgpos("../images/icon-other.png", -0.85rem, -0.05rem, 1.84rem, 1.04rem);
  }

  .limitUpList {
    .type {
      padding: 0 0.5rem;
      height: 0.8rem;
      line-height: 0.8rem;
      font-size: 0.28rem;
      border-bottom: solid 1px #eee;
      .flex;
      .flex-sb;
      .flex-vc;

      li {
        width: 1.4rem;
        text-align: center;
      }
    }

    .refresh {
      .refreshbtn;
    }

    .sort {
      margin: 0 0.3rem;
      height: 0.72rem;
      font-size: 0.26rem;
      color: @gray;
      border-bottom: solid 1px #eee;

      li {
        text-align: left;
        line-height: 0.24rem;
        float: left;
        margin: 0.24rem 0;
        font-size: 0.26rem;

        span {
          height: 0.24rem;
          line-height: 0.24rem;
          float: left;
        }
      }

      li {
        width: 25%;
      }

      .rel {
        .triangle {
          position: relative;
          width: 0.14rem;
          height: 0.26rem;
          margin-left: 0.08rem;
          box-sizing: border-box;
          float: right;

          .up,
          .down {
            position: absolute;
          }

          .up {
            top: 0.02rem;
            left: 0;
            .triangleUp;
          }

          .down {
            left: 0;
            bottom: 0.02rem;
            .triangleDown;
          }

          .active {
            border-color: transparent transparent #e93030;
          }
        }

        span {
          float: right;
        }
      }
    }

    .noreasonSort {
      li {
        width: 33.33%;
      }
    }

    .border {
      height: 0.04rem;
      overflow: hidden;
      background: #fff;
      padding: 0 0.5rem;

      .line {
        background: #e93030;
        height: 0.04rem;
        width: 1.4rem;
      }
    }

    .detailWrap {
      .detail {
        div {
          ul {
            margin: 0 0.3rem;
            height: 0.96rem;
            border-bottom: solid 1px @border;

            .hq {
              line-height: 0.96rem;
              font-size: 0.32rem;
              font-family: "DIN";
            }

            .tr {
              text-align: right;
            }

            .reason {
              text-align: right;
              line-height: 0.96rem;
              font-size: 0.28rem;
              font-family: "DIN";
              overflow: hidden;
              text-overflow: ellipsis;
              white-space: nowrap;
            }

            li {
              width: 25%;
              float: left;
              font-size: 0.32rem;
              height: 0.96rem;
            }

            li:nth-of-type(1) {
              text-align: left;
              position: relative;

              .name {
                position: absolute;
                height: 0.3rem;
                line-height: 0.3rem;
                width: 100%;
                display: inline-block;
                left: 0;
                top: 0.18rem;
              }

              .code {
                position: absolute;
                height: 0.24rem;
                line-height: 0.24rem;
                width: 100%;
                font-size: 0.24rem;
                color: @gray;
                display: inline-block;
                left: 0;
                bottom: 0.18rem;
              }
            }
          }

          .empty {
            img {
              width: 2.22rem;
              height: 1.93rem;
              display: inline-block;
              margin-top: 0.3rem;
              margin-bottom: 0.2rem;
            }

            p {
              padding-bottom: 0.2rem;
            }

            font-size: 0.32rem;
            text-align: center;
          }
        }
      }
    }

    .noreasonDetailWrap {
      .detail {
        div {
          ul {
            li {
              width: 33.33%;
            }
          }
        }
      }
    }

    .typeFixed {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      background: #fff;
      z-index: 200;
    }

    .borderFixed {
      position: fixed;
      top: 0.8rem;
      left: 0;
      right: 0;
      background: #fff;
      z-index: 200;
    }

    .sortFixed {
      position: fixed;
      top: 0.83rem;
      left: 0;
      right: 0;
      background: #fff;
      z-index: 200;
    }

    .detailTop {
      margin-top: 1.56rem;
    }
  }
}